﻿using System;
using System.Runtime.Serialization;

namespace EDTS.Model.Weixin
{
    [DataContract]
    public class WxRequestModel:MBase
    {
        [Model]
        [DataMember]
        public long MsgID { get; set; }
        [Model]
        [DataMember]
        public string ToUserName { get; set; }
        [Model]
        [DataMember]
        public string FromUserName { get; set; }
        [Model]
        [DataMember]
        public string MsgType { get; set; }
        [Model]
        [DataMember]
        public string Description { get; set; }
        [Model]
        [DataMember]
        public string ErrorInfo { get; set; }
    }

    [DataContract]
    public class WxRequestCollection : ModelCollectionBase<WxRequestModel> { }

    public class WxRequestQuery : QueryBase
    {
        public int Status { get; set; }
    }

    public enum WxRequestStatus
    {
        Waiting=1, //待处理
        Pass=2, //不用处理
        Complete=5, //请求处理完成
        Failed=8,  //处理失败
        DirectDone=9  //直接处理及回复
    }
}
